# Recipe mongo::default
#
#  Default recipe for mongo
#

include_recipe "mongo::repo"

node['mongo']['packages'].each do |pkg|
  package pkg do
    if node['platform_family'] == 'debian'
      options("--allow-unauthenticated")
    end
    action :install
  end
end

service node['mongo']['service'] do 
  supports :start => true, :reload => true, :restart => true
  action [:enable, :start]
end
